﻿using GavinCMS.BLL;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;

namespace GavinCMS.Web.Controllers
{
    public class ProductsController : Controller
    {
        //
        // GET: /Products/

        public ActionResult Index()
        {
            return View();
        }

        public ActionResult DataGridData()
        {
            var bll = new ProductsBLL();
            var list = bll.GetProducts();

            return Json(list,JsonRequestBehavior.AllowGet);
        }

        public ActionResult ProductsList()
        {
            return View();
        }
    }
}
